package com.bootdo.crm.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.bootdo.crm.dao.ContactsBusinessDao;
import com.bootdo.crm.domain.ContactsBusinessDO;
import com.bootdo.crm.service.ContactsBusinessService;



@Service
public class ContactsBusinessServiceImpl implements ContactsBusinessService {
	@Autowired
	private ContactsBusinessDao contactsBusinessDao;
	
	@Override
	public ContactsBusinessDO get(Integer id){
		return contactsBusinessDao.get(id);
	}
	
	@Override
	public List<ContactsBusinessDO> list(Map<String, Object> map){
		return contactsBusinessDao.list(map);
	}
	
	@Override
	public int count(Map<String, Object> map){
		return contactsBusinessDao.count(map);
	}
	
	@Override
	public int save(ContactsBusinessDO contactsBusiness){
		return contactsBusinessDao.save(contactsBusiness);
	}
	
	@Override
	public int update(ContactsBusinessDO contactsBusiness){
		return contactsBusinessDao.update(contactsBusiness);
	}
	
	@Override
	public int remove(Integer id){
		return contactsBusinessDao.remove(id);
	}
	
	@Override
	public int batchRemove(Integer[] ids){
		return contactsBusinessDao.batchRemove(ids);
	}
	
}
